Vue.component("search", {
    data: function () {
        return {
            text: ""
        }
    },
    props: ["type"],
    template: `
    `,
    methods: {
        search: function () {
            this.$emit("search", [this.text, this.type])
        }
    }
});
Vue.component("lione", {
    props: ["detail"],
    template: `
    <div class="one">
        <p class="icon" :style="{backgroundImage: bgc }">
            <img v-if="isd=='dd'" @click="ydelete" class="delete" src="imgs/delete.png" alt=""/>
        </p>
    </div>
`,
    data: function () {
        return {
            bgc: "url('../imgs/default.jpg')"
        }
    },
    mounted: function () {
        this.bgc = "url('" + this.detail.bkimg + "'),url(imgs/default.jpg)";
    },
    methods: {
        look: function () {
            this.$emit("godetail")
        },
        ydelete: function () {
            this.$emit("ydelete", this.detail.id)
        }
    }
});
